﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace IMS_1._0
{
    public partial class add_employee : Form
    {
        public add_employee()
        {
            InitializeComponent();
        }

        private void lblemail_Click(object sender, EventArgs e)
        {

        }

        private void pnl_main_add_employee_Paint(object sender, PaintEventArgs e)
        {

        }
        int check_details()
        {
            int cd = 0;
            if (txtbox_emailid_add_employee.Text == "")
            {
                errorProvider1.SetError(txtbox_emailid_add_employee, "Email Id should be valid");
                cd = 1;
            }
            if (txtbox_phoneno_add_employee.Text == "")
            {
                errorProvider1.SetError(txtbox_phoneno_add_employee, "Phone no should be proper");
                cd = 1;
            }
            if (txtbox_mobno_add_employee.Text == "")
            {
                errorProvider1.SetError(txtbox_mobno_add_employee, "Mobile no should not be more than 10 digits");
                cd = 1;
            }
            return cd;
        }
    }
}
